package nl.ViewerServer.ServerManager.JobManager;

import java.util.ArrayList;

/**
 * A custom ParaViewThreadAssignment which is capable of storing the cooperating nodes and the thread counts for each of
 * those nodes. This is used to correctly reclaim the threads after a worker has finished.
 * 
 * @author Jeroen Verschuur
 * 
 */
public class LocalityThreadAssignment extends ParaViewThreadAssignment {
   public final ArrayList<ParaViewMachine> nodesAssigned;
   public final int[]                   threadsAssignedForNodes;

   public LocalityThreadAssignment( int threadCount, String machineFile, ArrayList<ParaViewMachine> nodesAssigned,
         int[] threadsAssignedForNodes ) {
      super( threadCount, machineFile );
      this.nodesAssigned = nodesAssigned;
      this.threadsAssignedForNodes = threadsAssignedForNodes;
   }

}
